package com.xc.content.mapper;


import com.xc.content.entity.CourseBase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * 课程基本信息(CourseBase)表数据库访问层
 *
 * @author makejava
 * @since 2024-12-25 22:53:19
 */
@Mapper
public interface CourseBaseMapper {

    List<CourseBase> findAll();


    List<CourseBase> findPageWithQuery(
            @Param("pageNum") int pageNum,
            @Param("pageSize") int pageSize,
            @Param("courseBase") CourseBase courseBase
    );


    Integer courseBaseSave(@Param("courseBase") CourseBase courseBase);

    CourseBase queryById(@Param("id") String id);

    Integer updateCourseBase(@Param("courseBase") CourseBase courseBase);

    List<CourseBase> queryByName(@Param("name") String name);

    Integer deletedCourseBase(@Param("id") String id);

    List<CourseBase> queryByCondition(@Param("courseBase") CourseBase courseBase);

}

